<script>
$(function(){
    $('#vacation_post').submit(function(){
		$.post(location.href,$(this).serialize(),function(data){			
			alert(data.message);
			if(data.state == 1) location.href = "?app=<?=APP?>&mod=my";
		},'json');
        return false;
    });
});
</script>
<form id="vacation_post" method="post">
<div class="t_2">
     <div class="fl">信息录入</div>
     <div class="fr add_form"><a href="javascript:;" id="add_table"></a></div>
</div>
<div >
<table cellspacing="2" cellpadding="2" class="helptable"><tr><td>
<ul>
	<li><b>小提示</b></li>
	<li>(1) <span style="color:red;">红色</span>项为必填项</li>
    <li>(2) 开始日期必须小于或等于结束日期，当开始日期等于结束日期时为请假1天</li>
    <li>(3) 开始日期必须大于或等于当前日期.</li>
</ul>
</td></tr>
</table>
</div>
<div class="post_form" id="info_form">
	<table width="100%" cellpadding="0" cellspacing="0" border="0" class="info_table">
		<tr>
			<td class="td2">开始时间：</td>
			<td><input rel="rili" onclick="new Calendar(2011,2018).show(this)" type="text" readonly="readonly" name="start_date" /></td>
		</tr>
		<tr>
			<td class="td2">结束时间：</td>
			<td><input rel="rili" onclick="new Calendar(2011,2018).show(this)" type="text" readonly="readonly" name="end_date" /></td>
		</tr>
		<tr>
			<td class="td1">备注：</td>
			<td><textarea name="mark" id="mark"></textarea></td>
		</tr>
		<tr>
			<td class="td2">下级操作员：</td>
			<td>
				<select name="next_uid" >
					<option value="">请选择</option>
					<?php foreach((array)$this->users as $user): ?>
					<option value="<?=$user['uid']?>"><?=$user['username']?>[<?=$user['nickname']?>]</option>
					<?php endforeach; ?>
				</select>
			</td>
		</tr>
		<tr>
			<td colspan="2" style="text-align:center" class="td1"><input type="submit" value="提交"/></td>
		</tr>
     </table>
</div>
</form>